@import './mixin/mixin';
@import './default';

.fadeIn {
	animation: slideIn 0.5s;
	display: block;
	opacity: 1;
}

@keyframes slideIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

// ----------------------------------基础布局样式----------------------------------------
// 内边距
@for $i from 0 to 128 {
	$p_var: $i * $PandingAndMarginSpace;

	.p#{$p_var} {
		padding: $p_var * 1px;
	}

	.pl#{$p_var} {
		padding-left: $p_var * 1px;
	}

	.pr#{$p_var} {
		padding-right: $p_var * 1px;
	}

	.pt#{$p_var} {
		padding-top: $p_var * 1px;
	}

	.pb#{$p_var} {
		padding-bottom: $p_var * 1px;
	}

	.ptb#{$p_var} {
		padding-top: $p_var * 1px;
		padding-bottom: $p_var * 1px;
	}

	.plr#{$p_var} {
		padding-left: $p_var * 1px;
		padding-right: $p_var * 1px;
	}
}

// 外边距
@for $i from 0 to 128 {
	$p_var: $i * $PandingAndMarginSpace;

	.m#{$p_var} {
		margin: $p_var * 1px;
	}

	.ml#{$p_var} {
		margin-left: $p_var * 1px;
	}

	.mr#{$p_var} {
		margin-right: $p_var * 1px;
	}

	.mt#{$p_var} {
		margin-top: $p_var * 1px;
	}

	.mb#{$p_var} {
		margin-bottom: $p_var * 1px;
	}

	.mtb#{$p_var} {
		margin-top: $p_var * 1px;
		margin-bottom: $p_var * 1px;
	}

	.mlr#{$p_var} {
		margin-left: $p_var * 1px;
		margin-right: $p_var * 1px;
	}
}

// 宽
@for $i from 0 to 60 {
	$w_var: $i * 16;

	.w#{$w_var} {
		width: $w_var * 1px;
	}
}

// 高
@for $i from 0 to 30 {
	$h_var: $i * 32;

	.h#{$h_var} {
		height: $h_var * 1px;
	}
}

// 行高
@for $i from 0 to 30 {
	$h_var: $i * 32;

	.lh#{$h_var} {
		line-height: $h_var * 1px;
	}
}

// 字体
.fs0 {
	font-size: 0px;
}

@for $i from 6 to 30 {
	$f_var: $i * 2;

	.fs#{$f_var} {
		font-size: $f_var * 1px;
	}
}

// 层级系列
.z-99 {
	z-index: -99;
}

.z-1 {
	z-index: -1;
}

.z1 {
	z-index: 1;
}

.z9 {
	z-index: 10;
}

.z10 {
	z-index: 10;
}

.z99 {
	z-index: 99;
}

.z500 {
	z-index: 500;
}

//position
.p-r {
	position: relative;
}

.p-f {
	position: fixed;
}

.p-a {
	position: absolute;
}

.p-s {
	position: sticky;
}

.l0 {
	left: 0;
}

.r0 {
	right: 0;
}

.t0 {
	top: 0;
}

.b0 {
	bottom: 0;
}

//overflow
.ov-h {
	overflow: hidden;
}

.ov-a {
	overflow: auto;
}

.ov-xa {
	overflow-x: auto;
}

.ov-ya {
	overflow-y: auto;
}

// display系列
.d-il {
	display: inline-block;
}

.d-b {
	display: block;
}

.d-i {
	display: inline;
}

.d-n {
	display: none;
}

.d-f {
	display: flex;
}

.w-full {
	width: 100%;
}

.w100 {
	width: 100%;
}

.h100 {
	height: 100%;
}

// 居中系列
.ta-r {
	text-align: right;
}

.ta-l {
	text-align: left;
}

.ta-c {
	text-align: center;
}

.ta-j {
	text-align: justify;
}

.va-t {
	vertical-align: top;
}

.va-m {
	vertical-align: middle;
}

.va-b {
	vertical-align: bottom;
}

.v-h {
	visibility: hidden;
}

.v-v {
	visibility: visible;
}

// 定位系列
.pos-a {
	position: absolute;
}

.pos-r {
	position: relative;
}

.pos-f {
	position: fixed;
}

// flex布局系列
.flex1 {
	// @include flex();
	flex: 1;
}

.flex2 {
	// @include flex(2);
	flex: 2;
}

.flex3 {
	// @include flex(3);
	flex: 3;
}

.flex4 {
	// @include flex(4)
	flex: 4;
}

.ac {
	align-items: center;
}

.as {
	align-items: stretch;
}

.ai-b {
	align-items: baseline;
}

.fw {
	flex-wrap: wrap;
}

.fd-c {
	flex-direction: column;
}

.jc-b {
	justify-content: space-between;
}

.jc {
	justify-content: center;
}

.jc-r {
	justify-content: flex-end;
}

.jc-l {
	justify-content: flex-start;
}

.s0 {
	flex-shrink: 0;
}

// 边框系列
.bor {
	border: solid 1px;
}

.bor-t {
	border-top: solid 1px;
}

.bor-b {
	border-bottom: solid 1px;
}

.bor-l {
	border-left: solid 1px;
}

.bor-r {
	border-right: solid 1px;
}

// 背景系列
.bg-w {
	background-color: #fff;
}

.bg-b {
	// background-color: rgba($color:black, $alpha: .8);
	background-color: #000;
}

.bg-module {
	background-color: #f5f5f5; //模块分割底色
}

.bg-title {
	background-color: #fafafa; //title 底色
}

.bg-disable {
	background-color: $disable;
}

.bg-tempt {
	background-color: rgba(black, 0.7);
}

.bg-placeholder {
	background-color: $placeholder_b;
}

.bg-divider {
	background-color: $divider_b;
}

.bg-hint {
	background-color: $hint_b;
}

.bg-icon {
	background-color: $icon_b;
}

.bg-text {
	background-color: $text_b;
}

.bg-side {
	background-color: $side_b;
}

.bg-side-s {
	background-color: $side_strong;
}

.tp {
	background-color: transparent;
}

//渐变色
.bg-mei-red {
	background-image: linear-gradient(-117deg, #d5466c 0%, #fa5b52 100%);
}

.bg-mei-yel {
	background-image: linear-gradient(-138deg, #fcb719 0%, #f6a346 100%);
}

.bg-blue {
	background-color: $common_blue;
}

.bg-theme {
	background-color: $theme_color;
}

// 状态色
.bg-success {
	background-color: $theme_color !important;
}

.bg-fail {
	background-color: $fail_red;
}

.bg-warn {
	background-color: $warn_yellow;
}

// 颜色系列
.c-divider-b {
	color: $divider_b;
}

//divider
.c-hint-b {
	color: $hint_b;
}

//hint disable
.c-icon-b {
	color: $icon_b;
}

//icon secondary
.c-text-b {
	color: $text_b;
}

//text
.c-divider-w {
	color: $divider_w;
}

//divider
.c-hint-w {
	color: $hint_w;
}

//hint disable
.c-icon-w {
	color: $icon_w;
}

//icon secondary
.c-text-w {
	color: $text_w;
}

//text
.c-blue {
	color: $common_blue;
}

// 状态色
.c-success {
	color: $success_green;
}

.c-fail {
	color: $fail_red;
}

.c-warn {
	color: $warn_yellow;
}

.c-placeholder {
	color: $placeholder_b;
}

//色
.c-red {
	color: $fail_red;
}

.c-theme {
	color: $theme_color;
}

.b-theme {
	border-color: $theme_color;
}

.b-fail {
	border-color: $fail_red;
}

.b-warn {
	border-color: $warn_yellow;
}

.b-side {
	border-color: $side_b;
}

.b-side-s {
	border-color: $side_strong;
}

.strong {
	font-weight: bold;
}

.op0 {
	opacity: 0;
}

.cp {
	cursor: pointer;
}

.link {
	cursor: pointer;
	color: $theme_color;
	&:hover {
		text-decoration: underline;
	}
}

.point-success {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 20px;
	background-color: $success_green;
}

.point-disable {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 20px;
	background-color: $disable;
}

.btn-link {
	cursor: pointer;
	color: $theme_color;
}

::-webkit-scrollbar {
	/*滚动条整体样式*/
	width: 4px;
	/*高宽分别对应横竖滚动条的尺寸*/
	height: 4px;
}

::-webkit-scrollbar-thumb {
	/*滚动条里面小方块*/
	border-radius: 3px;
	/* -webkit-box-shadow: inset 0 0 5px #fafafa; */
	background: #cacaca;
}

::-webkit-scrollbar-track {
	/*滚动条里面轨道*/
	/* -webkit-box-shadow: inset 0 0 5px #fafafa; */
	border-radius: 3px;
	background: #f5f5f5;
}

.noScroll::-webkit-scrollbar {
	display: none;
}

.step-point {
	display: inline-block;
	position: relative;
	width: 10px;
	height: 10px;
	border: solid 3px $theme_color;
	border-radius: 20px;
}
.step-bar {
	display: inline-block;
	width: 2px;
	height: 100%;
	background-color: $side_strong;
}

.w1200 {
	width: 1200px;
}

.br6 {
	border-radius: 6px;
}

.br10 {
	border-radius: 10px;
}

.br100 {
	border-radius: 100px;
}

.content {
	background: #f7f7f7;
	max-width: 1920px;
	min-height: calc(100vh - 100px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bg-theme2 {
	background-color: #ffe6cc;
}

.bg-theme3 {
	background-color: #fff5e5;
}

@import './tool';
